/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import org.joda.time.DateTime;
/**
 * Verdict information for a node
 */
@Schema(description = "Verdict information for a node")

public class NodeVirusProtectionInfo {
  /**
   * The verdict for the node id. Either NO_SCANNING, IN_PROGRESS, CLEAN, MALICIOUS
   */
  public enum VerdictEnum {
    NOT_SCANNING("NOT_SCANNING"),
    IN_PROGRESS("IN_PROGRESS"),
    CLEAN("CLEAN"),
    MALICIOUS("MALICIOUS");

    private String value;

    VerdictEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static VerdictEnum fromValue(String input) {
      for (VerdictEnum b : VerdictEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("verdict")
  private VerdictEnum verdict = null;

  @JsonProperty("lastCheckedAt")
  private DateTime lastCheckedAt = null;

  @JsonProperty("sha256")
  private String sha256 = null;

  @JsonProperty("nodeId")
  private Long nodeId = null;

  public NodeVirusProtectionInfo verdict(VerdictEnum verdict) {
    this.verdict = verdict;
    return this;
  }

   /**
   * The verdict for the node id. Either NO_SCANNING, IN_PROGRESS, CLEAN, MALICIOUS
   * @return verdict
  **/
  @Schema(required = true, description = "The verdict for the node id. Either NO_SCANNING, IN_PROGRESS, CLEAN, MALICIOUS")
  public VerdictEnum getVerdict() {
    return verdict;
  }

  public void setVerdict(VerdictEnum verdict) {
    this.verdict = verdict;
  }

  public NodeVirusProtectionInfo lastCheckedAt(DateTime lastCheckedAt) {
    this.lastCheckedAt = lastCheckedAt;
    return this;
  }

   /**
   * The date the file was last scanned
   * @return lastCheckedAt
  **/
  @Schema(description = "The date the file was last scanned")
  public DateTime getLastCheckedAt() {
    return lastCheckedAt;
  }

  public void setLastCheckedAt(DateTime lastCheckedAt) {
    this.lastCheckedAt = lastCheckedAt;
  }

  public NodeVirusProtectionInfo sha256(String sha256) {
    this.sha256 = sha256;
    return this;
  }

   /**
   * The hash of the file
   * @return sha256
  **/
  @Schema(description = "The hash of the file")
  public String getSha256() {
    return sha256;
  }

  public void setSha256(String sha256) {
    this.sha256 = sha256;
  }

  public NodeVirusProtectionInfo nodeId(Long nodeId) {
    this.nodeId = nodeId;
    return this;
  }

   /**
   * Node ID
   * @return nodeId
  **/
  @Schema(required = true, description = "Node ID")
  public Long getNodeId() {
    return nodeId;
  }

  public void setNodeId(Long nodeId) {
    this.nodeId = nodeId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    NodeVirusProtectionInfo nodeVirusProtectionInfo = (NodeVirusProtectionInfo) o;
    return Objects.equals(this.verdict, nodeVirusProtectionInfo.verdict) &&
        Objects.equals(this.lastCheckedAt, nodeVirusProtectionInfo.lastCheckedAt) &&
        Objects.equals(this.sha256, nodeVirusProtectionInfo.sha256) &&
        Objects.equals(this.nodeId, nodeVirusProtectionInfo.nodeId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(verdict, lastCheckedAt, sha256, nodeId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class NodeVirusProtectionInfo {\n");
    
    sb.append("    verdict: ").append(toIndentedString(verdict)).append("\n");
    sb.append("    lastCheckedAt: ").append(toIndentedString(lastCheckedAt)).append("\n");
    sb.append("    sha256: ").append(toIndentedString(sha256)).append("\n");
    sb.append("    nodeId: ").append(toIndentedString(nodeId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
